import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
import util from './assets/js/utils.js'
import './assets/fonts/iconfont.css'
import qs from 'qs'
import axios from 'axios'
import VideoPlayer from 'vue-video-player'
import 'vue-video-player/src/custom-theme.css'
import 'video.js/dist/video-js.css'
import moment from 'moment'

Vue.use(VideoPlayer)
//配置请求根路径
axios.defaults.baseURL='http://api.coco.com/api/'  
//权限配置器
// axios.interceptors.request.use(config => {
//   console.log(config)
//   config.headers.Authorization = window.sessionStorage.getItem('token')
//   return config
// })
Vue.prototype.$util = util
Vue.prototype.$http = axios
Vue.prototype.$moment = moment
Vue.prototype.$qs = qs;
Vue.config.productionTip = false
axios.defaults.withCredentials = true

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

